// 配置设置api
import request from '@/utils/request'
/**
 *获取基础配置api
 */
export const Getjichupeizhi = (data) => request({
  method: 'post',
  url: `/Common/基础配置`,
  data
})

/**
 *新建 基础配置数据的api
 */
export const AddDictApi = (data) => request({
  method: 'post',
  url: `/Common/AddDict`,
  data
})

/**
 *删除 基础配置数据的api
 */
export const DeleteDictApi = (data) => request({
  method: 'post',
  url: `/Common/DeleteDict?key=${data}`,
  data
})

/**
 *获取更新config的值api
 */
export const UpdateConfigValue = (data) => request({
  method: 'post',
  url: `/Common/UpdateConfigValue`,
  data
})

/**
 *获取 页面一段时间不操作就退出的api
 */
export const logout_timeoutApi = (data) => request({
  method: 'post',
  url: `/Common/QueryConfigValue?configKey=${data}`,
  data
})

/**
 *获取 查询故障信息
 */
export const QueryAlarmApi = (data) => request({
  method: 'post',
  url: `Alarm/Query`,
  data
})

/**
 *获取 创建故障信息
 */
export const CreateAlarmApi = (data) => request({
  method: 'post',
  url: `Alarm/Create`,
  data
})

/**
 *获取 删除故障信息
 */
export const DeleteAlarmApi = (data) => request({
  method: 'delete',
  url: `Alarm/Delete`,
  data
})

/**
 *获取 修改故障信息
 */
export const UpdateAlarmApi = (data) => request({
  method: 'put',
  url: `Alarm/Update`,
  data
})